from django.conf.urls.defaults import *
from nerdbot.cards.models import Index_card


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

#info_dict = {
#    'queryset': Index_card.objects.all(),
#}

urlpatterns = patterns('nerdbot.cards.views',
 (r'^$', 'index'),
    #(r'^(?P<card_id>\d+)/$', 'detail'),
    #(r'^(?P<card_id>\d+)/results/$', 'results'),
    (r'^(?P<value>\w+)/misc/$', 'misc'),
    #(r'search$', 'search'),
    (r'ajax$', 'ajax'),
    #(r'ajax2$', admin.site.root),
    (r'restrict_tag$', 'restrict_tag'),
    #(r'misc$', 'misc'),
    # Example:
    # (r'^nerdbot/', include('nerdbot.foo.urls')),
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
)
